Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added cache clear to asset view tab #884

Open
wants to merge 2 commits into
base: 1.x
Choose a base branch
from

Conversation

Corepex
Copy link
Contributor

@Corepex Corepex commented Jan 17, 2025

Changes in this pull request

Resolves #775

Additional info

This pull request includes enhancements to the asset API slice and the FlexContainer component. The most important changes are the addition of type imports, the enhancement of the assetGetTree endpoint, and the integration of cache invalidation in the FlexContainer component.

Enhancements to the asset API slice:

Improvements to FlexContainer component:

@Corepex Corepex self-assigned this Jan 17, 2025
@Corepex Corepex requested a review from markus-moser January 17, 2025 10:50
@@ -51,6 +54,14 @@ const FlexContainer = (props: FlexContainerProps): React.JSX.Element => {
})
}

const clearCache = (): void => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we do this somewhere inside of the action so that the cache clears in all cases when the asset gets deleted? And in addition to that shouldn't we use our new useElementRefresh then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete asset in folder preview doesn't delete it from folder preview
2 participants